<template>
  <transition name="fade">
    <div class="title-container">
      <p>{{ this.$store.state.TitleTxt }}</p>
    </div>
  </transition>

</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>
.title-container {
  position: fixed;
  top: 1vh;
  left: 50%;
  margin-left: -15vw;
  text-align: center;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  width: 30vw;
  border-radius: 5px;
  color: #fff;
  p {
    padding: 0 5px;
    font-size: 12px;
  }
}
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s linear;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
.fade-enter-to,
.fade-leave {
  opacity: 1;
}
</style>